﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member_list.aspx.cs" Inherits="MG.HomeO2O.Admin.member_list" %>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,member-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="Scripts/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="Scripts/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="Scripts/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>人员管理</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span> 信息管理 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<div class="text-c"> 日期范围：
		<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})" id="datemin" class="input-text Wdate" style="width:120px;">
		-
		<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;">
		<input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话、邮箱" id="" name="">
		<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"><a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> <a href="javascript:;" onclick="member_add('添加信息','member_add.aspx','','210')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加信息</a></span> <span class="r">共有数据：<strong>88</strong> 条</span> </div>
	<div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg table-sort" id="pot">
		<thead>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="80">ID</th>
				<th width="100">姓名</th>
				<th width="40">头像</th>
				<th width="90">年龄</th>
				<th width="150">工龄(工作时长)</th>
				<th width="">阐述</th>
				<th width="130">评语</th>
				<th width="70">服务类型</th>
				<th width="100">状态</th>
                <th width="100" >操作</th>
			</tr>
		</thead>
		<tbody>
		
		</tbody>
	</table>
	</div>
</div>
<script type="text/javascript" src="Scripts/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="Scripts/lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="Scripts/lib/laypage/1.2/laypage.js"></script> 
<script type="text/javascript" src="Scripts/lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="Scripts/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="Scripts/js/H-ui.js"></script> 
<script type="text/javascript" src="Scripts/js/H-ui.admin.js"></script> 

    
<script type="text/javascript">
//$(function(){
//	$('.table-sort').dataTable({
//		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
//		"bStateSave": true,//状态保存
//		"aoColumnDefs": [
//		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
//		  {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
//		]
//	});
//	$('.table-sort tbody').on( 'click', 'tr', function () {
//		if ( $(this).hasClass('selected') ) {
//			$(this).removeClass('selected');
//		}
//		else {
//			$('tr.selected').removeClass('selected');
//			$(this).addClass('selected');
//		}
//	});
//});
/*用户-添加*/
function member_add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*用户-查看*/
function member_show(title,url,id,w,h){
	layer_show(title,url,w,h);
}

/*用户-编辑*/
function member_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}

/*用户-删除*/
function member_del(id) {
    alert(id);
    confirm('确认要删除吗？');
    $.ajax({
        type: "post",
        url: "Hander/Handlermember_Del.ashx",
        data: {

            id:id
        },
        success:function(data)
        {
            if(data==1)
            {
                alert("毛兴兴大傻逼");
                location.href = 'member_list.aspx';
            }
            else
            {
                alert("删除失败")
            }
        }


    })
}

$(function () {  
    $.ajax({
        type: "post",
        url: "Hander/member_list.ashx",
        success: function (data1) {
            var data = eval(data1);
            $(data).each(function (index, item) {
               
                var p = "<tr><td><input type='checkbox' value='1' name=''></td><td>" + item.Pid + "</td><td>" + item.Pname + "</td><td>" + item.PimgPath + "</td><td>" + item.Page + "</td><td>" + item.Lengthage + "</td><td>" + item.Sketch + "</td><td>" + item.Remark + "</td><td>" + item.FName + "</td><td>" + item.Patate + "</td><td><input type='button' value='删除' onclick='member_del(" + item.Pid + ")' /></td></tr>";
                $("#pot tbody").append(p);

            })
        }
    })


})
</script> 
</body>
</html>

